﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace z.m.db.Metadata {
	public class MOrder {
		[Display(Name = "Address")]
		[StringLength(200)]
		public string Address { get; set; }
		[Display(Name = "Create Time")][DataType(DataType.Date)]
		public Nullable<System.DateTime> Create_Date { get; set; }

		public int Customer_ID { get; set; }
		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int ID { get; set; }
		[Display(Name = "Map Location")]
		[StringLength(200)]
		public string MapLocation { get; set; }
        //[Display(Name = "Note")]
        //[StringLength(200)]
		public string Note { get; set; }

		public virtual ICollection<Order_Detail> Order_Detail { get; set; }
		[DataType(DataType.Date)]
		public Nullable<System.DateTime> Pay_Date { get; set; }
		[Display(Name = "Create Time")]
		[DataType(DataType.Time)]
		public Nullable<System.TimeSpan> Create_Time { get; set; }
		[DataType(DataType.Date)]
		public Nullable<System.DateTime> Order_Date { get; set; }
		[DataType(DataType.Time)]
		public Nullable<System.TimeSpan> Order_Time { get; set; }
		[DataType(DataType.Time)]
		public Nullable<System.TimeSpan> Pay_Time { get; set; }
		[DataType(DataType.Date)]
		public Nullable<System.DateTime> Ship_Date { get; set; }
		[DataType(DataType.Time)]
		public Nullable<System.TimeSpan> Ship_Time { get; set; }

		public virtual UserProfile UserProfile { get; set; }
	}
}